package com.xuantu.pattern.create.singleton;

import java.io.Serializable;

/**
 * 饿汉模式 线程安全
 * 
 * @author fengzp
 *
 */
public class HungrySingleton extends BaseSingleton implements Serializable{

	private static HungrySingleton INSTANCE = new HungrySingleton();

	/*
	 * static { INSTANCE = new HungrySingleton(); }
	 */

	private HungrySingleton() {
	}

	public static HungrySingleton getInstance() {
		return INSTANCE;
	}
	
}
